<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body class="white-bg">
<div style="padding: 50px">
    <div class="render-wrap"></div>
</div>

<th:block th:include="include :: footer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="https://formbuilder.online/assets/js/form-builder.min.js"></script>
<script src="https://formbuilder.online/assets/js/form-render.min.js"></script>
<script th:inline="javascript">
    var taskId = [[${taskId}]];
    var formData = [[${formData}]];
    var formRenderInstance;
    jQuery(function($) {
        formRenderInstance = $('.render-wrap').formRender({formData:formData.formData});//渲染数据
    });
    //提交
    function submit(){
        $.operate.save("/form/process/complate",{taskId:taskId,formData:JSON.stringify(formRenderInstance.userData),formDataId:formData.id});
    }
    //驳回
    function jump(){
        $.modal.open("选择跳转节点","/process/nodeList/"+taskId,400,300);
    }
</script>
</body>
</html>